home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 6f | 77 6c 61 6e 64 2e 72 65 |Path: ho|wland.re|
|00000010| 73 74 6f 6e 2e 61 6e 73 | 2e 6e 65 74 21 61 67 61 |ston.ans|.net!aga|
|00000020| 74 65 21 62 6f 75 6c 64 | 65 72 21 75 73 65 6e 65 |te!bould|er!usene|
|00000030| 74 0a 46 72 6f 6d 3a 20 | 52 6f 62 65 72 74 20 44 |t.From: |Robert D|
|00000040| 6f 64 69 65 72 20 3c 64 | 6f 64 69 65 72 40 63 6f |odier <d|odier@co|
|00000050| 6c 6f 72 61 64 6f 2e 65 | 64 75 3e 0a 4e 65 77 73 |lorado.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 2b 2b 0a 53 75 | 62 6a 65 63 74 3a 20 52 |g.c++.Su|bject: R|
|00000080| 65 61 64 69 6e 67 20 64 | 65 72 69 76 65 64 2d 63 |eading d|erived-c|
|00000090| 6c 61 73 73 20 6f 62 6a | 65 63 74 73 20 69 6e 20 |lass obj|ects in |
|000000a0| 66 72 6f 6d 20 61 20 66 | 69 6c 65 20 2d 2d 20 70 |from a f|ile -- p|
|000000b0| 6f 73 73 69 62 6c 65 3f | 0a 44 61 74 65 3a 20 33 |ossible?|.Date: 3|
|000000c0| 20 4a 61 6e 20 31 39 39 | 36 20 31 38 3a 32 36 3a | Jan 199|6 18:26:|
|000000d0| 31 32 20 47 4d 54 0a 4f | 72 67 61 6e 69 7a 61 74 |12 GMT.O|rganizat|
|000000e0| 69 6f 6e 3a 20 55 6e 69 | 76 65 72 73 69 74 79 20 |ion: Uni|versity |
|000000f0| 6f 66 20 43 6f 6c 6f 72 | 61 64 6f 20 61 74 20 42 |of Color|ado at B|
|00000100| 6f 75 6c 64 65 72 0a 4d | 65 73 73 61 67 65 2d 49 |oulder.M|essage-I|
|00000110| 44 3a 20 3c 34 63 65 68 | 6f 34 24 72 65 36 40 6c |D: <4ceh|o4$re6@l|
|00000120| 61 63 65 2e 63 6f 6c 6f | 72 61 64 6f 2e 65 64 75 |ace.colo|rado.edu|
|00000130| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000140| 6f 73 74 3a 20 6c 61 75 | 72 65 6c 2e 63 6f 6c 6f |ost: lau|rel.colo|
|00000150| 72 61 64 6f 2e 65 64 75 | 0a 4d 69 6d 65 2d 56 65 |rado.edu|.Mime-Ve|
|00000160| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|00000170| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|00000180| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000190| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|000001a0| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001b0| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|000001c0| 4d 6f 7a 69 6c 6c 61 20 | 31 2e 31 4e 20 28 58 31 |Mozilla |1.1N (X1|
|000001d0| 31 3b 20 49 3b 20 53 75 | 6e 4f 53 20 34 2e 31 2e |1; I; Su|nOS 4.1.|
|000001e0| 34 20 73 75 6e 34 6d 29 | 0a 54 6f 3a 20 64 6f 64 |4 sun4m)|.To: dod|
|000001f0| 69 65 72 0a 58 2d 55 52 | 4c 3a 20 6e 65 77 73 3a |ier.X-UR|L: news:|
|00000200| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 0a 0a 48 |comp.lan|g.c++..H|
|00000210| 65 6c 6c 6f 2c 0a 0a 49 | 20 68 61 76 65 20 61 20 |ello,..I| have a |
|00000220| 73 69 6d 70 6c 65 20 71 | 75 65 73 74 69 6f 6e 20 |simple q|uestion |
|00000230| 62 75 74 20 49 20 63 61 | 6e 27 74 20 73 65 65 6d |but I ca|n't seem|
|00000240| 20 74 6f 20 66 69 6e 64 | 20 61 20 73 69 6d 70 6c | to find| a simpl|
|00000250| 65 20 61 6e 73 77 65 72 | 2e 20 3a 29 0a 0a 49 20 |e answer|. :)..I |
|00000260| 68 61 76 65 20 61 6e 20 | 61 62 73 74 72 61 63 74 |have an |abstract|
|00000270| 20 63 6c 61 73 73 2c 20 | 6c 65 74 27 73 20 63 61 | class, |let's ca|
|00000280| 6c 6c 20 69 74 20 63 6c | 61 73 73 20 41 2c 20 61 |ll it cl|ass A, a|
|00000290| 6e 64 20 74 77 6f 20 64 | 65 72 69 76 65 64 20 63 |nd two d|erived c|
|000002a0| 6c 61 73 73 65 73 0a 42 | 20 61 6e 64 20 43 2e 20 |lasses.B| and C. |
|000002b0| 49 20 77 6f 75 6c 64 20 | 2a 6c 69 6b 65 2a 20 74 |I would |*like* t|
|000002c0| 6f 20 64 6f 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |o do som|ething l|
|000002d0| 69 6b 65 20 74 68 69 73 | 20 28 6e 65 76 65 72 20 |ike this| (never |
|000002e0| 6d 69 6e 64 20 74 68 61 | 74 2c 20 61 73 0a 73 74 |mind tha|t, as.st|
|000002f0| 61 74 65 64 20 62 65 6c | 6f 77 2c 20 69 74 20 63 |ated bel|ow, it c|
|00000300| 61 6e 27 74 20 77 6f 72 | 6b 29 2e 0a 0a 09 41 2a |an't wor|k)....A*|
|00000310| 20 70 5f 73 6f 6d 65 74 | 68 69 6e 67 20 3d 20 6e | p_somet|hing = n|
|00000320| 65 77 20 41 3b 0a 09 63 | 69 6e 20 3e 3e 20 2a 70 |ew A;..c|in >> *p|
|00000330| 5f 73 6f 6d 65 74 68 69 | 6e 67 3b 0a 09 70 5f 73 |_somethi|ng;..p_s|
|00000340| 6f 6d 65 74 68 69 6e 67 | 2d 3e 64 6f 5f 77 68 61 |omething|->do_wha|
|00000350| 74 65 76 65 72 28 29 3b | 0a 0a 57 69 74 68 69 6e |tever();|..Within|
|00000360| 20 74 68 65 20 70 72 6f | 67 72 61 6d 2c 20 49 20 | the pro|gram, I |
|00000370| 64 6f 6e 27 74 20 72 65 | 61 6c 6c 79 20 63 61 72 |don't re|ally car|
|00000380| 65 20 69 66 20 73 6f 6d | 65 6f 6e 65 20 67 69 76 |e if som|eone giv|
|00000390| 65 73 20 61 20 42 20 6f | 72 20 61 20 43 20 61 73 |es a B o|r a C as|
|000003a0| 0a 69 6e 70 75 74 20 2d | 2d 20 49 27 6c 6c 20 75 |.input -|- I'll u|
|000003b0| 73 65 20 74 68 65 20 76 | 69 72 74 75 61 6c 20 66 |se the v|irtual f|
|000003c0| 75 6e 63 74 69 6f 6e 73 | 20 6f 66 20 41 20 66 6f |unctions| of A fo|
|000003d0| 72 20 61 63 63 65 73 73 | 20 61 6e 79 77 61 79 2e |r access| anyway.|
|000003e0| 0a 0a 49 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |..I don'|t want t|
|000003f0| 6f 20 68 61 76 65 20 74 | 6f 20 77 72 69 74 65 3a |o have t|o write:|
|00000400| 0a 0a 09 63 69 6e 20 3e | 3e 20 69 64 65 6e 74 3b |...cin >|> ident;|
|00000410| 0a 09 73 77 69 74 63 68 | 20 28 20 69 64 65 6e 74 |..switch| ( ident|
|00000420| 20 29 20 7b 0a 09 63 61 | 73 65 20 27 42 27 3a 20 | ) {..ca|se 'B': |
|00000430| 70 5f 73 6f 6d 65 74 68 | 69 6e 67 20 3d 20 6e 65 |p_someth|ing = ne|
|00000440| 77 20 42 3b 20 62 72 65 | 61 6b 3b 0a 09 63 61 73 |w B; bre|ak;..cas|
|00000450| 65 20 27 43 27 3a 20 70 | 5f 73 6f 6d 65 74 68 69 |e 'C': p|_somethi|
|00000460| 6e 67 20 3d 20 6e 65 77 | 20 43 3b 20 62 72 65 61 |ng = new| C; brea|
|00000470| 6b 3b 0a 09 7d 0a 09 63 | 69 6e 20 3e 3e 20 2a 70 |k;..}..c|in >> *p|
|00000480| 5f 73 6f 6d 65 74 68 69 | 6e 67 3b 0a 0a 42 75 74 |_somethi|ng;..But|
|00000490| 20 6d 61 79 62 65 20 74 | 68 69 73 20 28 6f 72 20 | maybe t|his (or |
|000004a0| 73 6f 6d 65 20 76 61 72 | 69 61 74 69 6f 6e 20 6f |some var|iation o|
|000004b0| 66 20 69 74 29 20 69 73 | 20 74 68 65 20 6f 6e 6c |f it) is| the onl|
|000004c0| 79 20 77 61 79 21 0a 0a | 44 6f 65 73 20 61 6e 79 |y way!..|Does any|
|000004d0| 6f 6e 65 20 68 61 76 65 | 20 61 6e 20 65 6c 65 67 |one have| an eleg|
|000004e0| 61 6e 74 20 73 6f 6c 75 | 74 69 6f 6e 20 74 6f 20 |ant solu|tion to |
|000004f0| 74 68 69 73 20 70 72 6f | 62 6c 65 6d 3f 0a 54 68 |this pro|blem?.Th|
|00000500| 61 6e 6b 73 20 66 6f 72 | 20 79 6f 75 72 20 74 69 |anks for| your ti|
|00000510| 6d 65 2c 0a 52 6f 62 65 | 72 74 20 44 6f 64 69 65 |me,.Robe|rt Dodie|
|00000520| 72 2c 20 64 6f 64 69 65 | 72 40 63 6f 6c 6f 72 61 |r, dodie|r@colora|
|00000530| 64 6f 2e 65 64 75 0a 0a | |do.edu..| |
+--------+-------------------------+-------------------------+--------+--------+